﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MDK.Common
{

    public class PropertyHelper
    {
        public List<propertyLambda> propertyList = new List<propertyLambda>();

        public void Addproperty(CompareType CompareType, string propertyName, object propertyValue)
        {
            propertyList.Add(new propertyLambda()
            {
                CompareType = CompareType,
                propertyName = propertyName,
                propertyValue = propertyValue
            });
        }
    }

    /// <summary>
    /// 属性
    /// </summary>
    public class propertyLambda
    {
        public CompareType CompareType { get; set; }

        public string propertyName { get; set; }

        public object propertyValue { get; set; }
    }

    /// <summary>
    /// 合并类型
    /// </summary>
    public enum CompareType
    {
        Equal,
        NotEqual,
        GreaterThan,
        LessThan,
        GreateThanorEqual,
        LessThanorEqual,
        Contains,
        NotContains
    }
}
